package com.qf.service.impl;

import com.qf.dao.OrganDao;
import com.qf.dao.impl.OrganDaoImpl;
import com.qf.entity.Organ;
import com.qf.service.OrganService;
import com.qf.util.DruidUtil;

import java.util.List;

/*
杨威
2021/10/5
19:14
*/
public class OrganServiceImpl implements OrganService {
    OrganDao organDao=new OrganDaoImpl();
    @Override
    public List<Organ> showAll() {
        List<Organ> organs = organDao.selectAll();
        DruidUtil.close();
        return organs;
    }
}
